/** 
 * This file is part of WGA.
 * 
 * WGA is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 * 
 * WGA is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 * 
 * You should have received a copy of the GNU General Public License
 * along with WGA.  If not, see <http://www.gnu.org/licenses/>.
 */

/**
 * Copyright 2010, 2011 Omar Andres Carmona Cortes, Roberto Leite de Moraes Rego Fihlo
 * 						omar@ifma.edu.br			robertoleite1@gmail.com
 */

package componentes;

public class Par {

	private Individuo individuo1;

	private Individuo individuo2;

	public Par(Individuo ind1, Individuo ind2) {
		this.individuo1 = ind1;
		this.individuo2 = ind2;
	}

	public synchronized  Individuo cruzar() {
		return this.individuo1.cruzamento(individuo2);
	}

	public synchronized  Individuo getIndividuo1() {
		return individuo1;
	}

	public synchronized  Individuo getIndividuo2() {
		return individuo2;
	}
}
